package com.bd.myprotolib.proto

import com.bd.myprotolib.bean.XTZJ_Bean
import com.bd.myprotolib.bean.ZJXX_Bean
import com.hailiao.hlbdcore.base.BaseBDProto
import com.hailiao.hlbdcore.base.BaseInBean
import com.hailiao.hlbdcore.base.BaseOutBean
import com.hailiao.hlbdcore.constant.ProtobufType

/**
 * kotlin 版会简单很多，也建议直接使用kotlin写，替换字符串就可以了
 * @Author: D10NG
 * @Time: 2021/12/3 16:43
 */
enum class Proto4MyKotlin : BaseBDProto {

    ZJ {
        override val inCmd: String
            get() = "XTZJ"
        override val inBeanClz: Class<out BaseInBean>
            get() = XTZJ_Bean::class.java
        override val outCmd: String
            get() = "ZJXX"
        override val outBeanClz: Class<out BaseOutBean>
            get() = ZJXX_Bean::class.java
        override val description: String
            get() = "设备自检"
    };

    override val inProtobuf: ProtobufType
        get() = ProtobufType.BD_4
    override val outProtobuf: ProtobufType
        get() = ProtobufType.BD_4
    override val type: String
        get() = "北斗标准协议 4.0版"
    override val useDevice: List<String>
        get() = listOf("通用")
    override val useFirmware: String
        get() = "通用"
}